package edu.chen.entity;

import org.apache.ibatis.type.Alias;

import java.sql.Timestamp;

@Alias("lease_")
public class Lease {
    private Book book;
    private Student student;
    private Timestamp lease_time;

    public Lease(){}

    public Lease(Book book, Student student) {
        this.book = book;
        this.student = student;
    }

    public Lease(Book book, Student student, Timestamp lease_time) {
        this.book = book;
        this.student = student;
        this.lease_time = lease_time;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Timestamp getLease_time() {
        return lease_time;
    }

    public void setLease_time(Timestamp lease_time) {
        this.lease_time = lease_time;
    }

    @Override
    public String toString() {
        return "Lease{" +
                "book=" + book +
                ", student=" + student +
                ", lease_time=" + lease_time +
                '}';
    }
}
